@model Adams.Admin.DataTransfer.Announcements.Create.PageLoad
@{
    Layout = "~/Views/Announcements/_Layout.cshtml";
}
@section Head {
}
@section Scripts {
    <script type="text/javascript" src="@Url.Content("/Scripts/Announcements/create.js")"></script>
}
<div class="content-box">
    <!-- Start Content Box -->
    <div class="content-box-header">
        <h3>
            Announcement Details</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <form action="" method="post">
            <p>
                <label>
                    Title</label>
                <input class="text-input medium-input" type="text" id="Title" value="@Model.Announcement.Title" />
                <br />
                <small>the title of the announcement</small>
            </p>
            <p>
                <label>
                    Short Description</label>
                <input class="text-input medium-input" type="text" id="ShortDescription" value="@Model.Announcement.ShortDescription" />
                <br />
                <small>A brief description in a few words</small>
            </p>
            <p>
                <label>
                    Link</label>
                <input class="text-input medium-input" type="text" id="Link" value="@Model.Announcement.Link" />
                <br />
                <small>link to announcement</small>
            </p>
            <p>
                <label>
                    Show From</label>
                <input class="text-input small-input datepicker" type="text" id="StartDate" value="@(Model.Announcement.ID > 0 ? Model.Announcement.StartDate.ToShortDateString() : DateTime.Now.ToShortDateString())" />
                <br />
                <small>the date to start showing the announcement</small>
            </p>
            <p>
                <label>
                    Show To</label>
                <input class="text-input small-input datepicker" type="text" id="EndDate" value="@(Model.Announcement.ID > 0 ? Model.Announcement.EndDate.ToShortDateString() : DateTime.Now.AddDays(7).ToShortDateString())" />
                <br />
                <small>the date to stop showing the announcement</small>
            </p>
            <p>
                <label>
                    Full Announcement</label>
                <textarea class="text-input textarea wysiwyg" id="LongDescription" cols="79" rows="15">@Model.Announcement.LongDescription</textarea>
            </p>
            <p>
                <input class="button" id="submit" type="button" value="Submit" />
            </p>
        <div class="clear">
        </div>
        <!-- End .clear -->
        <input id="id" type="hidden" value="@Model.Announcement.ID" />
        </form>
    </div>
    <!-- End .content-box-content -->
</div>
<!-- End .content-box -->
